{% load static %}
{% load i18n %}
<div class="layui-header layui-fluid">
    <div class="" style="display:flex;flex-direction:row;justify-content:space-between;">
        <!-- LOGO -->
        <div class="">
            <a class="logo" href="{% url 'pro_list' %}">
                <svg
                   width="100%"
                   height="30"
                   viewBox="0 0 73.818748 16.933334"
                   version="1.1"
                   id="svg8"
                   xmlns="http://www.w3.org/2000/svg">
                  <g
                     id="layer1">
                    <g
                       aria-label="觅思文档"
                       id="text1017"
                       style="font-size:19.4028px;line-height:1.25;font-family:xiaowei;-inkscape-font-specification:'xiaowei, Normal';fill:#4d4d4d;stroke-width:0.264583">
                      <path
                         d="M 0.91442951,0.79334046 Q 1.1418061,0.90702874 1.3312865,1.020717 1.5586631,1.1344053 1.9755201,1.2859897 2.3923771,1.3996779 2.8850263,1.4754701 3.3776756,1.5512623 4.0598052,1.5891584 4.779831,1.6270545 6.1819864,1.5133662 6.5230513,1.4754701 7.4325575,1.3996779 8.3799598,1.3238858 8.7210247,1.2859897 10.274764,1.1723014 11.297959,1.0965092 q 1.402155,-0.11368828 1.515844,-0.11368828 0.07579,0 0.07579,0.64423358 V 2.233392 l -0.265273,0.037896 q -0.07579,0 -1.629532,0.1515844 Q 9.6305309,2.4986646 8.7968168,2.5744568 6.409363,2.7639373 6.1819864,2.8018334 4.362974,2.9534178 4.1734935,2.9155217 3.9461169,2.8776256 3.7187404,2.8397295 3.567156,2.8018334 3.1881951,2.6881451 2.9229224,2.6123529 2.5439615,2.4228725 2.2786889,2.2712881 1.937624,2.0439115 1.6344553,1.816535 1.3312865,1.5512623 1.0281178,1.2859897 0.87653342,1.0965092 0.68705295,0.86913265 0.72494904,0.75544437 L 0.76284514,0.64175609 Z M 4.6282466,3.446067 q 0,0 0.2273766,0.1515843 0.2273765,0.1515844 0.4547531,0.378961 0.2273766,0.2652726 0.3410648,0.4926492 0.1136883,0.2273765 0.1136883,0.6442336 0,0.416857 -0.075792,0.4926492 Q 5.6514411,5.6819365 4.8177271,5.1134951 3.9461169,4.5450537 3.9461169,4.5450537 3.9082209,4.5071576 4.2492857,3.9766123 4.5903505,3.446067 4.6282466,3.446067 Z M 7.3946614,3.9766123 Q 7.7357262,3.4839631 7.7736223,3.4839631 7.8115184,3.446067 8.038895,3.6355474 q 0.2273765,0.1515844 0.4547531,0.378961 0.2273766,0.2273765 0.3031687,0.4547531 0.1136883,0.2273765 0.1515844,0.4547531 0.037896,0.2273766 0,0.416857 Q 8.9105051,5.5303521 8.8347129,5.6061443 8.7968168,5.6819365 7.9252067,5.1134951 7.0535966,4.5450537 7.0535966,4.5071576 q 0,-0.037896 0.3410648,-0.5305453 z M 11.942193,3.6355474 q 0.0379,0.037896 0.113688,0.1136883 0.07579,0.037896 0.18948,0.1136883 0.113689,0.075792 0.227377,0.1515844 0.341065,0.2652726 0.378961,0.3031687 0,0 -0.113688,0.1894805 -0.151585,0.1894804 -0.378961,0.416857 -0.303169,0.2652726 -0.530546,0.3789609 -0.227376,0.1136883 -0.492649,0.1515844 -0.227376,0 -0.454753,-0.037896 -0.189481,-0.075792 -0.227377,-0.1136883 -0.07579,-0.037896 0.530546,-0.9095062 L 11.828504,3.5597552 Z M 3.8324287,5.8714169 h 0.6442335 v 0.1136883 0.1515844 h 3.638025 3.6380248 V 6.0230013 5.8714169 h 0.644234 0.682129 l -0.0379,2.8043109 q 0,2.7664152 -0.113688,3.0316872 -0.07579,0.227377 -0.227377,0.416857 -0.151584,0.227377 -0.341064,0.341065 -0.227377,0.151584 -0.378961,0.189481 -0.151585,0.0379 -0.189481,0.0379 -0.0379,-0.0379 -0.0379,-2.9179995 V 6.8946114 H 8.1146872 4.4766622 v 2.1600773 q 0,2.1979733 -0.075792,2.4632463 -0.075792,0.227376 -0.1894805,0.454753 -0.075792,0.18948 -0.3031687,0.378961 -0.1894805,0.18948 -0.3410649,0.265272 -0.075792,0.0379 -0.2273765,0.07579 H 3.2260912 V 9.2820653 5.8714169 Z M 8.038895,7.6146372 q 0.9095062,0 0.9095062,0.037896 0.037896,0.037896 -0.037896,0.6063375 -0.1515843,0.6063375 -0.2652726,0.9474023 -0.1136883,0.4547531 -0.3410649,0.9852989 -0.1894804,0.530545 -0.4547531,1.06109 -0.3031687,0.644234 -0.5305453,1.023195 -0.3410648,0.530545 -0.6821297,0.985298 -0.3410648,0.492649 -0.833714,0.947402 -0.4547531,0.454753 -0.833714,0.757922 -0.3410649,0.265273 -0.7200258,0.530546 -0.3789609,0.227376 -0.9095062,0.492649 -0.5684414,0.265272 -0.9852985,0.416857 -0.3789609,0.113688 -0.7958179,0.227376 -0.3410648,0.113689 -0.416857,0.07579 -0.075792,-0.0379 -0.37896096,-0.0379 -0.30316875,-0.0379 -0.34106484,-0.07579 0,0 0.0378961,-0.0379 0.0378961,-0.0379 0.11368828,-0.07579 0.11368828,-0.0379 0.22737656,-0.07579 Q 1.1418061,16.254946 1.6344553,16.02757 2.0134162,15.838089 2.5060654,15.534921 2.9229224,15.269648 3.3397795,14.928583 3.7566365,14.625414 4.2113896,14.208557 4.6661427,13.753804 4.9693115,13.412739 5.2724802,13.033778 5.5377529,12.616921 5.8788177,12.086376 6.0304021,11.783207 6.2577786,11.404246 6.409363,10.987389 6.5609474,10.570532 6.7125317,10.115779 6.8641161,9.585234 6.9399083,9.2441692 7.0157005,8.8273122 7.0535966,8.3725591 7.0914927,7.8799098 7.1293888,7.7662216 V 7.6146372 Z m 1.2505711,2.3116617 h 0.6442335 v 2.3116621 q 0,0.947402 0,1.667428 0.037896,0.720025 0.037896,0.795818 0.037896,0.18948 0.1515843,0.303168 0.113688,0.07579 0.265273,0.189481 0.151584,0.07579 2.463246,0.07579 2.311661,0 2.349558,0.07579 0,0.07579 -0.0379,0.189481 -0.0379,0.151584 -0.151584,0.303168 -0.113688,0.113689 -0.341065,0.189481 -0.227376,0.07579 -1.212675,0.07579 -1.023194,0.0379 -2.463246,0 Q 9.5926348,16.02757 9.3652582,15.951778 9.1378817,15.875985 8.9484012,15.686505 8.7968168,15.497025 8.7210247,15.34544 8.6831286,15.15596 8.6831286,12.541129 L 8.6452325,9.9262989 Z"
                         id="path7590" />
                      <path
                         d="m 22.212034,1.1723014 h 0.757922 v 0.1894805 0.1515843 h 4.16857 4.16857 V 1.3617819 1.2101975 l 0.720026,-0.037896 h 0.757922 l -0.0379,3.6001288 v 3.6001289 l -0.113689,0.2273765 q -0.07579,0.2652727 -0.227376,0.4547531 -0.113689,0.1515844 -0.341065,0.3031688 -0.227377,0.1515843 -0.492649,0.1515843 H 31.307096 V 9.3578575 9.2062731 h -4.433843 q -4.433843,0 -4.547531,0.1136883 -0.113688,0.075792 -0.303169,0.1515844 -0.151584,0.037896 -0.341065,0.037896 h -0.18948 V 5.3408716 1.1723014 Z m 2.387454,1.0989867 h -1.629532 v 1.3263632 1.3642594 h 1.667428 1.629532 V 3.9008201 q 0,-1.0610906 0,-1.3642594 l -0.0379,-0.2652726 z m 4.888596,0 h -1.781117 v 1.3263632 1.3642594 h 1.781117 1.819012 V 3.5976513 2.2712881 Z m -4.8507,3.4485444 h -1.667428 l -0.0379,1.2884672 q 0,1.2884672 -0.0379,1.3642594 l -0.0379,0.1136882 h 1.705325 1.705324 V 7.0840919 5.7198325 Z m 4.8507,0 h -1.781117 v 0.9474024 q 0,0.9095062 -0.07579,1.2126749 -0.07579,0.2652727 -0.18948,0.4547532 l -0.113689,0.1515843 h 1.970597 2.008493 V 7.0840919 5.7198325 Z m -8.678206,4.4717395 h 0.795818 v 2.160077 q 0,2.160077 -0.07579,2.42535 -0.07579,0.227376 -0.227376,0.568441 -0.151585,0.303169 -0.303169,0.492649 -0.189481,0.189481 -0.378961,0.303169 -0.151585,0.113688 -0.416857,0.113688 h -0.227377 v -3.031687 -3.031687 z m 3.069584,0.0379 h 0.833714 v 1.781116 q 0,1.781116 -0.0379,2.084285 -0.0379,0.378961 -0.07579,0.416857 v 0.151584 h 2.690622 2.728519 v -1.477947 -1.477948 h 0.795818 0.833714 v 1.326363 q -0.0379,1.36426 -0.151584,1.667429 -0.07579,0.265272 -0.151585,0.454753 -0.07579,0.151584 -0.151584,0.265272 0,0.0379 -0.113688,0.113689 -0.07579,0.113688 -0.151585,0.18948 -0.18948,0.189481 -0.265273,0.265273 -0.151584,0.0379 -0.416857,0.0379 H 30.018629 V 15.686505 15.34544 h -2.880103 q -2.880103,0 -2.880103,0.0379 0,0.0379 -0.265273,0.303169 -0.227376,0.265273 -0.341065,0.303169 -0.113688,0.0379 -0.341065,0.0379 h -0.227376 l -0.0379,-2.880103 q 0,-2.842207 0,-2.880103 0.0379,-0.07579 0.833714,-0.0379 z m 3.448544,-0.0379 h 0.833714 l -0.0379,1.136882 q 0,1.136883 -0.113688,1.440052 -0.113688,0.303169 -0.227377,0.530545 -0.113688,0.227377 -0.227376,0.378961 -0.151584,0.189481 -0.341065,0.303169 -0.151584,0.113688 -0.416857,0.113688 l -0.265273,-0.0379 -0.0379,-1.856909 q 0,-1.894804 0,-1.9327 0.0379,-0.07579 0.833714,-0.07579 z m 6.252856,0 h 0.833714 v 2.197973 q -0.0379,2.160077 -0.151585,2.463246 -0.07579,0.303169 -0.227376,0.606337 -0.151585,0.265273 -0.341065,0.454754 -0.151584,0.18948 -0.303169,0.265272 -0.151584,0.07579 -0.378961,0.07579 h -0.227376 v -3.031687 -3.031687 z"
                         id="path7592" />
                      <path
                         d="m 46.655014,1.3238858 q 0.378961,0 0.378961,0.037896 0.0379,0.075792 0.113688,0.4547531 0.07579,0.4547531 0.18948,0.7958179 0.113689,0.3410649 0.265273,0.6442336 0.113688,0.2652727 0.07579,0.3031687 0,0 -0.378961,-0.1136882 Q 46.958182,3.2944826 46.69291,3.1428982 46.389741,2.9913139 46.162365,2.8018334 45.972884,2.6123529 45.783404,2.3849764 45.631819,2.1197037 45.556027,1.8923272 q -0.0379,-0.2273766 -0.0379,-0.378961 l -0.0379,-0.1515843 0.416857,-0.037896 q 0.341065,0 0.757922,0 z m -0.07579,2.4253499 h 7.389738 v 0.3789609 0.3410649 h -1.591636 -1.629532 v 1.6674281 q 0,1.7053242 -0.07579,2.1221812 -0.07579,0.3789609 -0.227377,0.8716101 -0.113688,0.416857 -0.341065,0.8337141 -0.227376,0.416857 -0.454753,0.757922 -0.265273,0.341065 -0.606337,0.720026 -0.341065,0.378961 -0.606338,0.644233 l -0.265273,0.227377 0.07579,0.07579 q 0.113688,0.113688 0.530545,0.378961 0.378961,0.303169 0.87161,0.568441 0.341065,0.227377 0.947402,0.568442 0.49265,0.265272 1.174779,0.568441 0.606338,0.303169 1.250571,0.530545 l 0.568442,0.265273 v 0.303169 q 0,0.341065 -0.0379,0.341065 0,0 -0.644234,-0.189481 -0.606337,-0.151584 -1.288467,-0.378961 -0.644234,-0.227376 -1.440052,-0.530545 -0.757921,-0.303169 -1.440051,-0.644234 -0.757922,-0.341065 -1.250571,-0.644233 -0.492649,-0.303169 -0.568442,-0.303169 -0.0379,0 -0.454753,0.265273 -0.492649,0.303168 -1.06109,0.606337 -0.568442,0.265273 -1.212675,0.530545 -0.606338,0.265273 -1.288467,0.49265 -0.757922,0.303168 -1.55374,0.492649 -0.720026,0.227376 -1.250571,0.341065 -0.416857,0.113688 -0.49265,0.113688 0,0 0,-0.189481 v -0.227376 l 0.68213,-0.265273 q 0.68213,-0.265272 1.174779,-0.492649 0.378961,-0.151584 1.023195,-0.454753 0.530545,-0.265273 0.985298,-0.530545 0.492649,-0.265273 0.909506,-0.530546 0.530545,-0.341065 0.795818,-0.530545 0.303169,-0.227377 0.492649,-0.378961 l 0.113689,-0.07579 -0.606338,-0.644234 Q 44.532833,11.138974 44.229664,10.722117 43.964391,10.30526 43.737015,9.8884028 43.509638,9.4336497 43.433846,9.1304809 43.282261,8.75152 43.244365,8.4483512 43.168573,8.1451825 43.130677,6.32617 V 4.4692615 H 41.16008 39.189483 V 4.1281966 3.7492357 Z m 0.341064,0.7200258 h -2.160077 l 0.0379,1.5916359 q 0,1.629532 0.113688,2.0084929 0.151585,0.416857 0.227377,0.6442336 0.113688,0.2652726 0.341065,0.6442336 0.227376,0.416857 0.568441,0.8716105 0.341065,0.454753 0.606338,0.757921 0.303168,0.303169 0.341065,0.303169 0.0379,0 0.378961,-0.416857 0.341064,-0.378961 0.682129,-0.87161 0.303169,-0.4547531 0.530545,-0.9095062 0.227377,-0.4926492 0.303169,-0.7579218 0.07579,-0.2652727 0.151585,-0.5305453 0.07579,-0.3031688 0.07579,-1.8190125 V 4.4692615 Z"
                         id="path7594" />
                      <path
                         d="m 61.699761,1.2859897 h 0.833714 v 1.4779476 1.4779476 h 0.720026 l 0.720025,0.037896 0.0379,0.3410649 v 0.3410648 h -0.720025 -0.757922 v 0.4926492 l 0.0379,0.4926492 h 0.720026 l 0.720025,0.037896 V 6.32617 6.6672349 h -0.720025 -0.720026 l -0.0379,3.5622331 q 0,3.562232 -0.07579,3.789609 -0.113689,0.265273 -0.189481,0.454753 -0.0379,0.151584 -0.227376,0.378961 -0.151585,0.227377 -0.378961,0.378961 -0.227377,0.18948 -0.49265,0.265273 l -0.303168,0.113688 V 10.30526 l -0.0379,-5.3054532 -1.023195,-0.037896 H 58.743865 V 4.6208459 4.279781 l 1.061091,-0.037896 h 1.061091 V 2.7639373 1.2859897 Z m 7.086569,0.075792 h 0.87161 v 2.2358694 2.2737656 l -0.07579,0.3410649 q -0.151584,0.3410648 -0.265273,0.5305453 -0.113688,0.1894804 -0.113688,0.2273765 0,0 2.008493,0 h 2.008493 v 3.6759214 3.638025 l -0.113688,0.37896 q -0.113689,0.454754 -0.265273,0.644234 -0.113688,0.265273 -0.303169,0.454753 -0.151584,0.189481 -0.341065,0.265273 -0.18948,0.113688 -0.37896,0.07579 h -0.227377 v -0.303169 l -0.0379,-0.341065 h -3.751713 -3.751713 v -0.341064 -0.378961 h 3.751713 3.789609 v -1.743221 -1.74322 h -3.410648 -3.410649 l 0.0379,-0.378961 v -0.341065 h 3.372753 l 3.410648,-0.0379 V 9.0925848 7.6904294 H 67.91472 64.238799 V 7.3114685 6.9704036 h 1.819012 l 1.819013,-0.037896 V 4.1281966 l 0.0379,-2.7664147 z m 3.29696,0.8716101 q 0.189481,-0.1136883 0.227377,-0.075792 0.07579,0 0.454753,0.9852984 0.378961,0.9852984 0.416857,1.0231945 0,0.075792 -0.265273,0.1136883 -0.303168,0.037896 -0.644233,0.2273766 -0.303169,0.1515843 -0.68213,0.4547531 -0.341065,0.2652726 -0.644234,0.6063375 -0.303168,0.3410648 -0.568441,0.7200257 -0.227377,0.3410649 -0.341065,0.3031688 -0.07579,-0.075792 -0.07579,-0.075792 0,-0.037896 0.18948,-0.7200258 Q 70.302174,5.2271833 70.491654,4.696638 70.681135,4.1660927 70.794823,3.9766123 70.946407,3.6734435 71.135888,3.2944826 71.363264,2.9155217 71.628537,2.650249 71.89381,2.3849764 72.08329,2.233392 Z m -8.412932,0.4926492 q 0,0 0.0379,0 0.07579,0 0.227376,0.037896 0.151585,0 0.265273,0 0.492649,0.075792 0.833714,0.1515844 0.378961,0.075792 0.833714,0.3031687 0.454753,0.2273766 0.833714,0.6063375 0.416857,0.3789609 0.492649,0.6063375 l 0.113689,0.1894805 -0.454754,0.7200257 Q 66.398876,6.0608974 66.247292,6.2503778 L 66.1715,6.4019622 66.019915,6.0230013 Q 65.906227,5.6819365 65.754643,5.3787677 65.603058,5.075599 65.337786,4.696638 65.072513,4.3176771 64.693552,3.9387162 64.314591,3.5218592 63.973526,3.2565865 63.632461,2.9913139 63.632461,2.8776256 q 0,-0.1515844 0.0379,-0.1515844 z M 59.729164,5.075599 h 0.757922 v 3.4106483 q 0,3.4485447 -0.07579,3.7517137 -0.07579,0.341064 -0.227377,0.606337 -0.113688,0.265273 -0.341065,0.492649 -0.227376,0.227377 -0.416857,0.303169 -0.18948,0.113688 -0.341065,0.151584 H 58.971242 V 9.4336497 5.075599 Z"
                         id="path7596" />
                    </g>
                  </g>
                </svg>
            </a>
        </div>
        <!-- 搜索框 -->
        <div style="margin:12px;" class="layui-hide-xs">
            {% if search_type == '1' %}
            <form method="get" action="{% url 'doc_search' %}" target="_blank">
                <div class="layui-input-inline">
                    <input class="layui-input mrdoc-search-input" placeholder="{% trans '搜索文档' %}" name="q"/>
                    <button type="submit" style="position: absolute;top:12px;right: 8px;border: none;background-color: white;">
                        <i class="layui-icon layui-icon-search" ></i>
                    </button>
                </div>
            </form>
            {% else %}
            <form method="get" action="{% url 'search' %}" target="_blank">
                <input name="type" value="doc" hidden />
                <div class="layui-input-inline">
                    <input class="layui-input mrdoc-search-input" placeholder="{% trans '搜索文档' %}" name="kw"/>
                    <button type="submit" style="position: absolute;top:12px;right: 8px;border: none;background-color: white;">
                        <i class="layui-icon layui-icon-search" ></i>
                    </button>
                </div>
            </form>
            {% endif %}
        </div>
        <div class="layui-hide-lg layui-hide-md layui-hide-sm" style="margin:20px;padding-left:60px;">
            <a href="{% url 'search' %}">
                <i class="layui-icon layui-icon-search" style="font-size: 24px;"></i>
            </a>
        </div>
        
        <!-- 新建文档按钮 -->
        {% if request.user.is_authenticated %}
        <div class="layui-hide-xs">
            <ul class="layui-nav">
                <li class="layui-nav-item">
                    <a>
                        <i class="layui-icon layui-icon-add-circle" style="color:black;"></i> <span>{% trans "新建" %}</span>
                    </a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="{% url 'create_doc' %}">
                                <img src="{% static 'icon_img/create-doc-icon.svg' %}" height="14px" width="14px"></img>
                                <span class="layui-hide-xs">{% trans "新建文档" %}</span>
                            </a>
                        </dd>
                        <dd>
                            <a href="{% url 'create_doc' %}?eid=4">
                                <img src="{% static 'icon_img/create-table-icon.svg' %}" height="14px" width="14px"></img>
                                <span class="layui-hide-xs">{% trans "新建表格" %}</span>
                            </a>
                        </dd>
                        <dd>
                            <a href="javascript:void(0);" onclick="createPro();">
                                <img src="{% static 'icon_img/create-pro-icon.svg' %}" height="14px" width="14px"></img>
                                <span class="layui-hide-xs">{% trans "新建文集" %}</span>
                            </a>
                        </dd>
                    </dl>
                </li>
            </ul>
        </div>
        {% endif %}
        <!-- 用户菜单 -->
        <div class="">
            <ul class="layui-nav layui-layout-right">
                {% if request.user.is_authenticated %}
            <li class="layui-nav-item">
                <a href="javascript:void(0);">
                    <i class="layui-icon layui-icon-friends"></i> 
                    <span class="layui-hide-xs">{% if request.user.first_name != '' %} {{request.user.first_name}} {% else %} {{request.user.username}}{% endif %}</span>
                </a>
                <dl class="layui-nav-child">
                    {% if request.user.is_superuser %}
                    <dd>
                        <a href="{% url 'admin_center' %}" title="进入站点后台管理">
                            <i class="layui-icon layui-icon-console layui-hide-md"></i>
                            <span class="layui-hide-xs">{% trans "进入后台" %}</span>
                        </a>
                    </dd>
                    {% endif %}
                    <dd class="layui-hide-md layui-hide-sm layui-hide-lg">
                        <a href="{% url 'create_doc' %}" title="新建文档">
                            <i class="layui-icon layui-icon-add-1 layui-hide-md"></i>
                            <span class="layui-hide-xs">{% trans "新建文档" %}</span>
                        </a>
                    </dd>
                    <dd>
                        <a href="{% url 'user_center' %}" title="个人中心">
                            <i class="layui-icon layui-icon-app layui-hide-md"></i>
                            <span class="layui-hide-xs">{% trans "个人中心" %}</span>
                        </a>
                    </dd>
                    <dd>
                        <a href="javascript:void(0);" onclick="changePwd('{{ request.user.id }}','{{ request.user.username }}' )" title="修改登录密码">
                            <i class="layui-icon layui-icon-password layui-hide-md"></i>
                            <span class="layui-hide-xs">{% trans "修改密码" %}</span>
                        </a>
                    </dd>
                    <dd>
                        <a href="javascript:void(0)" title="退出登录" onclick="Logout()">
                            <i class="layui-icon layui-icon-logout layui-hide-md"></i>
                            <span class="layui-hide-xs">{% trans "退出登录" %}</span>
                        </a>
                    </dd>
                </dl>
            </li>
                {% else %}
                <li class="layui-nav-item">
                <a href="javascript:void(0);">
                <i class="layui-icon layui-icon-username"></i>
                    <span class="layui-hide-xs">{% trans "游客" %}</span>
                </a>
                <dl class="layui-nav-child">
                    {% if close_register == 'on' %}
                    <dd>
                        <a href="{% url 'login' %}">
                            <i class="iconfont mrdoc-icon-denglu"></i>
                            {% trans "登录" %}
                        </a>
                    </dd>
                    {% else %}
                    <dd>
                        <a href="{% url 'register' %}">
                            <i class="iconfont mrdoc-icon-zhuce"></i>
                            {% trans "注册" %}
                        </a>
                    </dd>
                    <dd>
                        <a href="{% url 'login' %}">
                            <i class="iconfont mrdoc-icon-denglu"></i>
                            {% trans "登录" %}
                        </a>
                    </dd>
                    {% endif %}
                </dl>
            </li>
                {% endif %}
            </ul>
        </div>
    </div>
</div>
<script>
    function Logout(){
        $.ajax({
            url:"{% url 'logout' %}",
            method:'post',
            success:function(r){
                if(r.status){
                    window.location.href = r.data
                }else{
                    layer.msg("注销失败")
                }
            },
            error:function(){
                layer.msg("注销失败")
            }
        })
    }
</script>